package com.anda.record.service.impl;

import com.anda.db.mapper.UserMapper;
import com.anda.model.domain.User2;
import com.anda.record.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author baisongyuan
 * @className UserServiceImpl
 * @description
 * @date 2022/10/7 17:39
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User2 getUserByUsername(String username) {
        return userMapper.oneUserByName(username);
    }
}
